﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;

namespace HFWebApp.Control
{
    public partial class c_NewsClass2 : System.Web.UI.UserControl
    {
        public BagePages bg = new BagePages();
        /// <summary>
        /// 显示数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 专题ID
        /// </summary>
        public int TopicID { get; set; }
        /// <summary>
        /// 剪切新闻数量
        /// </summary>
        public int CuteStrCount { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //getNewsList(int Count, string strWhere)
                Repeater1.DataSource = NewsController.getController().getNewsList(Count, "TopicID=" + TopicID.ToString());
                Repeater1.DataBind();
            }
        }
    }
}